package com.example.other.domain.dto;

import com.example.other.domain.Hospital;
import com.example.other.domain.Setmeal;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrdersDto {

    private Integer orderid;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date orderdate;

    private String userid;

    //    private Integer hpid;
    private Hospital hospital;

    //    private Integer smid;
    private Setmeal setmeal;

    private Integer state;
}
